﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ConfigAttributes.cs" company="Mir Software">
//   Copyright 2013 Mir Software. All rights reserved.
// </copyright>
// <summary>
//   Defines the ConfigAttributes type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Yacf
{
    using System;

    /// <summary>
    /// The config attributes - used to fine the link into the configuration tree
    /// </summary>
    public class ConfigAttributes
    {
        [System.AttributeUsage(AttributeTargets.Property)]
        public class ConfigInfo : System.Attribute
        {
            public string ConfigKeyPath;

            public string DefaultValue;

            public string version;

            public ConfigInfo(string configKeyPath)
            {
                this.ConfigKeyPath = configKeyPath;
                this.version = "1.0";
                this.DefaultValue = string.Empty;
            }
        }
    }
}
